package com.codedef.cidaren.entity;

import java.io.Serializable;
import java.util.Date;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.codedef.cidaren.valid.AddGroup;
import com.codedef.cidaren.valid.UpdateGroup;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Size;

/**
 * 兑换系统
 * 
 * @author sun
 * @email 1138794994@qq.com
 * @date 2020-08-22 01:03:59
 */
@Data
@TableName("cdr_cdkey")
public class CdkeyEntity implements Serializable {
	private static final long serialVersionUID = 1L;

	/**
	 * $column.comments
	 */
	@TableId
	private Integer id;
	/**
	 * $column.comments
	 */
	private String name;
	/**
	 * $column.comments
	 */
//	@NotBlank(message = "cdkey不能为空", groups = {AddGroup.class, UpdateGroup.class})
//	@Size(min = 2, max = 100, message = "cdkey长度不合法", groups = {AddGroup.class, UpdateGroup.class})
	private String cdkey;
	/**
	 * $column.comments
	 */
	private Integer userId;
	/**
	 * $column.comments
	 */
	private String userIp;
	/**
	 * $column.comments
	 */
	private Integer num;
	/**
	 * $column.comments
	 */
	private Integer status;
	/**
	 * $column.comments
	 */
	private Date createTime;
	/**
	 * $column.comments
	 */
	private Date useTime;

}
